import request from '@/utils/request'
import prefix from '@/api/basic'

export function getAllTree() {
  return request.get(prefix + 'menu/info/getAllTree')
}

export function save(parmas) {
  return request.post(prefix + 'menu/info/save', parmas)
}

export function update(parmas) {
  return request.post(prefix + 'menu/info/update', parmas)
}

export function remove(id) {
  return request.delete(prefix + `menu/info/delete/${id}`)
}

export function getById(id) {
  return request.get(prefix + `menu/info/getById/${id}`)
}
